package com.app.lan;

import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;

public class Streamer {
	private ObjectOutputStream clientOutputStream;
	private ObjectOutputStream serverOutputStream;
	private ObjectInputStream clientInputStream;
	private ObjectInputStream serverInputStream;
	
	private Streamer(){};
	private volatile static Streamer streamer;
	
	public static Streamer getInstance(){
		if(streamer == null){
			synchronized(Streamer.class){
				if(streamer==null){
					streamer = new Streamer();
				}
			}
		}
		return streamer;
	}

	public ObjectOutputStream getClientOutputStream() {
		return clientOutputStream;
	}

	public void setClientOutputStream(ObjectOutputStream clientOutputStream) {
		this.clientOutputStream = clientOutputStream;
	}

	public ObjectOutputStream getServerOutputStream() {
		return serverOutputStream;
	}

	public void setServerOutputStream(ObjectOutputStream serverOutputStream) {
		this.serverOutputStream = serverOutputStream;
	}

	public ObjectInputStream getClientInputStream() {
		return clientInputStream;
	}

	public void setClientInputStream(ObjectInputStream clientInputStream) {
		this.clientInputStream = clientInputStream;
	}

	public ObjectInputStream getServerInputStream() {
		return serverInputStream;
	}

	public void setServerInputStream(ObjectInputStream serverInputStream) {
		this.serverInputStream = serverInputStream;
	}

	
	
}
